package android.slc.user.ui;

import android.app.Application;
import android.slc.appbase.utils.AutoServiceUtils;
import android.slc.appbase.vm.AppBaseViewModel;
import android.slc.extras.system.repository.local.SettingLocalService;
import android.slc.user.R;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.ToastUtils;

/**
 * @author slc
 * @date 2020-08-19 11:07
 */
public class MyUserVm extends AppBaseViewModel {

    public MyUserVm(@NonNull Application application) {
        super(application);
    }

    public void onMyInfo() {
        //TODO 用户详情或者编辑用户信息界面
    }

    public void onMyOrCode() {
        ToastUtils.showShort(R.string.user_label_stay_tuned);
    }

    public void onSetting() {
        startActivity(AutoServiceUtils.load(SettingLocalService.class).getSettingClass());
    }
}
